package com.cloud.controller;

import com.cloud.service.LoginForTestService;
import com.cloud.tools.CommonResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 *
 * @author： linJianHong
 * @dateTime： 0:21 2022/5/8
 * @Description:
 * @ClassName:
 */
@RestController
public class LoginForTestController {
    @Resource
    LoginForTestService loginForTestService;

    @PostMapping("/user/loginByPhone")
    public CommonResult loginByPhone(@RequestBody Map<String,String> map){
        return loginForTestService.loginByPhone(map);
    }

}
